06. Webpack Entry

Heading

So now we come to the first concept - the Webpack entry point. Webpack broke at the last step because it didn’t have an entry point.

Webpack is going to make a map of our app assets and all of their dependencies, but it needs somewhere to start. The default location for the webpack entry point is ./src/index.js - but because we are already set up with express and have a slightly different file structure, that file doesn't exist! Instead, we need to tell webpack to use a custom entry point. For us, that will be:

’./src/client/index.js’

FEND C04 L02 A04 Webpackentry

Quiz

In the starter app that we have so far, how many asset files do you see that will be mapped?

SOLUTION: 7

Interview Question

QUESTION:

Interview Question

Without using build tools, what are the strategies available to you for loading assets in a particular order?

ANSWER:

Thanks for your response.